﻿<%@ Page Title="友情链接" Language="C#" MasterPageFile="~/member/mMenber.master" AutoEventWireup="true" CodeBehind="pfriendref.aspx.cs" Inherits="map.member.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">
   <link href="../outstyle.css" rel="stylesheet" type="text/css" />
      <link href="../Stylesheet1.css" rel="stylesheet" type="text/css" />
      <script src="../js/dropdowncontent.js" type="text/javascript"></script>
    <style type="text/css">
        .style7
        {
            width: 66px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">

   <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>--%>
     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            Width="580px" DataKeyNames="RECID" 
                CellPadding="4" ForeColor="#333333" GridLines="None" 
                onrowdeleting="GridView1_RowDeleting" 
                onselectedindexchanging="GridView1_SelectedIndexChanging" 
                BorderWidth="1px">
                <RowStyle BackColor="#EFF3FB" />
                <Columns>
                    <asp:BoundField DataField="RECID" HeaderText="RECID" Visible="False"/>
                    <asp:BoundField DataField="Name" HeaderText="好友名称" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                   <%-- <asp:BoundField DataField="Name" HeaderText="显示名称" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>--%>
                    <asp:BoundField DataField="URL" HeaderText="URL" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Description" HeaderText="描述" >
                    
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:CommandField ShowDeleteButton="True" />
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    当前没有友情链接,请在下方增加.
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView> 
      <%--      </ContentTemplate>
    </asp:UpdatePanel>--%>
            <asp:Label ID="Label_recid" runat="server" Text="RECID" Visible="false"></asp:Label><br />
            <table>
            <tr>
            <td class="style7">好友名称:</td><td><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><span class="style5">&nbsp;*</span>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="TextBox2"></asp:RequiredFieldValidator> </td>
            </tr>
            <tr>
            <td class="style7" style="text-align:center"> URL:</td><td><asp:TextBox ID="TextURL" runat="server" MaxLength="512" Font-Underline="False" Width="200"></asp:TextBox><span class="style5">&nbsp;*</span>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="TextURL"></asp:RequiredFieldValidator></td>
            </tr>
            <tr><td class="style7" style="text-align:center">
            描述:</td><td><asp:TextBox ID="TextDesp" runat="server"
            TextMode="MultiLine"></asp:TextBox></td></tr></table>
             
           <%--<br />
            显示名称:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><span class="style5">&nbsp;*</span>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="TextBox1"></asp:RequiredFieldValidator> --%>
         
            <asp:Image runat="server" ID="friendrefimage" AlternateText="没有图片" 
        Height="150px" Width="200px" />
            <div id="uploadphoto">
        <asp:FileUpload ID="FileUpload1" runat="server" />
        <br />
        <asp:Button ID="BTNUp" runat="server" Text="上传图片" onclick="BTNUp_Click" />
        
        <asp:Label ID="showError" runat="server" ForeColor="Red"></asp:Label>
        </div>
            
      <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="在地图上标记。" ControlToValidate="TextBox_lat"></asp:RequiredFieldValidator>--%><br />
            <asp:Button ID="Button1" runat="server" Text="增加" onclick="Button1_Click" /> 
            <asp:Button ID="Button2" runat="server" Text="修改" onclick="Button2_Click" /><br />
    
</asp:Content>
